/**
 * 
 */
package com.googlecode.dynargs.model.constraints.validation;

import java.lang.annotation.Annotation;

import com.googlecode.dynargs.model.constraints.AbstractConstraint;
import com.googlecode.dynargs.model.constraints.ConstraintType;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public abstract class ValidationConstraint extends AbstractConstraint {
	
	protected ValidationConstraintType validationConstraintType;
	protected String message;
	
	public ValidationConstraint(Class<? extends Annotation> clazz, ValidationConstraintType validationConstraintType, String message) {
		super(clazz.getName(), ConstraintType.VALIDATION);
		this.validationConstraintType = validationConstraintType;
		this.message = message;
	}
	
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @return the validationConstraintType
	 */
	public ValidationConstraintType getValidationConstraintType() {
		return validationConstraintType;
	}

}
